package com.thenie.chat.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *   好友关系类
 * </p>
 *
 * @author thenie
 * @since 2022-05-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_friend")
public class Friend implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * a用户的id
     */
    @TableField("aid")
    private Long aid;

    /**
     * b用户的id
     */
    @TableField("bid")
    private Long bid;

    /**
     * 成为好友的时间
     */
    @TableField("addDate")
    private Date addDate;


}
